package com.lishe.lishe.lishe.module.myorder.interfase;


import com.lishe.lishe.lishe.module.myorder.bean.BaseOrderDataBody;
import com.lishe.lishe.lishe.module.myorder.bean.LogisticsObject;
import com.lishe.lishe.lishe.module.myorder.bean.OrderObject;
import com.lishe.lishe.retrofit.BaseDataPageBody;
import com.lishe.lishe.retrofit.BaseRequestBody;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by shino on 2017/12/26.
 */

public interface OrederInterface {
    //我的订单信息接口数据
    @FormUrlEncoded
    @POST("user/meOrderList")
    Observable<BaseRequestBody<BaseOrderDataBody<OrderObject>>> getOrderList(@Field("token") String token, @Field("status") String status, @Field("page") String page, @Field("pageSize") String pageSize);

    //取消订单
    @FormUrlEncoded
    @POST("Order/cancelOrder")
    Observable<BaseRequestBody<Object>> cancleOrder(@Field("token") String token, @Field("payment_id") String payment_id);

    //确认收货
    @FormUrlEncoded
    @POST("Order/confirmOrder")
    Observable<BaseRequestBody<Object>> confirmOrder(@Field("token") String token, @Field("payment_id") String payment_id);

    //获取物流信息
    @FormUrlEncoded
    @POST("Other/getExpressList")
    Observable<BaseRequestBody<List<LogisticsObject>>> getExpressList(@Field("payment_id") String payment_id);
}
